import sys
import os
import shutil

if os.path.isdir(r'C:\eclipse_main\workspace\POD_BUILD'):
    pass #shutil.rmtree(r'C:\eclipse_main\workspace\POD_BUILD')
    
#os.mkdir(r'C:\eclipse_main\workspace\POD_BUILD')

os.chdir(r'C:\eclipse_main\workspace\POD_BUILD')

for file in ['setup.py', 'ez_setup.py', 'pod_builder.bat']:
    shutil.copyfile(r'C:\eclipse_main\workspace\POD_ROOT\builder\\' + file, r'C:\eclipse_main\workspace\POD_BUILD\\' + file)

if os.path.isdir('pod'):
    shutil.rmtree('pod')
    
os.mkdir('pod')

for file in ['__init__', 'core', 'db', 'fn', 'typed', 'query', 'dict', 'list', 'set']:
    shutil.copyfile(r'C:\eclipse_main\workspace\POD_ROOT\trunk\pod\\' + file + '.py', r'pod\\' + file + '.py')

